import { defHttp } from '/@/utils/http/axios';

export enum Api {
  list = '/sys/user/queryByOrgCodeForAddressList',
  positionList = '/sys/position/list',
  queryDepartTreeSync = '/sys/sysDepart/queryDepartTreeSync',
  basicQuota = '/sys/dept/getBasicQuotaInfo', // 示例端点
  leadership = '/sys/dept/getLeadershipInfo', // 示例端点
  internalOrg = '/sys/dept/getInternalOrgInfo', // 示例端点
  department = '/sys/dept/getDepartmentInfo', // 示例端点
  editList = '/sys/sysDepart/editList'
}




export const saveOrUpdateDepart = (params) => {
  defHttp.post({ url: Api.editList, params });
}
/**
 * 获取部门树列表
 */
export const queryDepartTreeSync = (params?) => defHttp.get({ url: Api.queryDepartTreeSync, params });

/**
 * 部门用户信息
 */
export const list = (params?) => defHttp.get({ url: Api.list, params });

/**
 * 职务列表
 */
export const positionList = (params?) => defHttp.get({ url: Api.positionList, params });

/**
 * 获取员额基本核定情况
 */
export const getBasicQuotaInfo = (params?) => defHttp.get({ url: Api.basicQuota, params });

/**
 * 获取领导班子信息
 */
export const getLeadershipInfo = (params?) => defHttp.get({ url: Api.leadership, params });

/**
 * 获取内设机构信息
 */
export const getInternalOrgInfo = (params?) => defHttp.get({ url: Api.internalOrg, params });

/**
 * 获取部门信息
 */
export const getDepartmentInfo = (params?) => defHttp.get({ url: Api.department, params });
